package cn.itcast.domo2;

public class StudentTest {
    public static void main(String[] args) {
        //创建学生类的对象
        Student stu=new Student();
        //给学生变量赋值，并打印
        stu.name="yumu";
        stu.address="江苏";
        stu.age=21;

        System.out.println(stu.name);
        System.out.println(stu.address);
        System.out.println(stu.age);
        //调用成员方法
        stu.study();
    }
}
